home *** CD-ROM | disk | FTP | other *** search
- class BOSS1BodyNomal extends EnemyAction {
- public BOSS1BodyNomal(StgFrame var1) {
- super(var1);
- }
-
- public boolean action(EnemyIndex var1) {
- BOSS1Index var2 = (BOSS1Index)var1;
- int var3 = var2.getTime();
- switch (Fixed.Random() & 61440) {
- case 0:
- case 4096:
- case 8192:
- case 12288:
- var1.setEnemyAction(new BOSS1BodyAttack1(super.resource));
- break;
- case 16384:
- case 20480:
- case 24576:
- case 28672:
- var1.setEnemyAction(new BOSS1BodyAttack2(super.resource));
- break;
- case 32768:
- case 36864:
- case 40960:
- case 45056:
- var1.setEnemyAction(new BOSS1BodyAttack3(super.resource));
- break;
- case 49152:
- case 53248:
- case 57344:
- case 61440:
- var1.setEnemyAction(new BOSS1BodyAttack4(super.resource));
- }
-
- ++var3;
- var2.setTime(var3);
- if (var3 > 40) {
- var1.setEnemyAction(new BOSS1BodyReturn(super.resource));
- }
-
- return true;
- }
-
- public boolean checkHitPlayerShip(EnemyIndex var1, PlayerShipIndex var2) {
- super.resource.getEnemy();
- return ((StgObjectIndex)var1).checkHit(var2);
- }
-
- public boolean checkHitPlayerShot(EnemyIndex var1, PlayerShotIndex var2) {
- boolean var3 = false;
- super.resource.getEnemy();
- if (((StgObjectIndex)var1).checkHit(var2)) {
- var3 = true;
- }
-
- return var3;
- }
-
- public boolean checkHitBom(EnemyIndex var1) {
- return false;
- }
-
- private boolean destroy(EnemyIndex var1) {
- Enemy var2 = super.resource.getEnemy();
- ((StgObjectIndex)var1).getSpriteAnimeIndex();
- boolean var3 = false;
- Status var4 = super.resource.getStatus();
- if (var1.getHitPoint() == 0) {
- var4.add(var1.getScore());
- ((StgObject)var2).delete(var1);
- var3 = true;
- }
-
- return var3;
- }
- }
-